package com.example.lab3.Service;

import com.example.lab3.Entity.DataModel;
import com.example.lab3.Impl.getDataImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.io.IOException;
import java.util.List;

/**
 * Service
 * 访问DAO层获取信息
 * */
@Service
public class DataModelService {

    @Autowired
    private getDataImpl getDataImpl;

    public List<DataModel> getData() throws IOException {
        System.out.println(getDataImpl.getSortData());
        return getDataImpl.getSortData();
    }

}
